import React from 'react';

interface SubmitButtonProps {
    text: string;
    onClick: () => void;
}

const SubmitButton: React.FC<SubmitButtonProps> = ({ text, onClick }) => {
    return (
        <button onClick={onClick} className="submit-button">
            {text}
        </button>
    );
};

export default SubmitButton;